/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	int n,i;
	char name[][20] = { 0 };
	char temp[20] = {0};
	scanf("%d", &n);
	for (i = 0; i < n; i++)
		scanf("%s", &name[i]);
	for (i = 0; i < n - 1; i++)
	{
		if (strcmp(name[i], "China") == 0)
		{
			strcpy(temp, name[i]);
			strcpy(name[i], name[n - 1]);
			strcpy(name[n - 1], temp);
		}
	}
	for (i = 0; i < n - 2; i++)
	{
		if (strcmp(name[i], name[i + 1]) > 0)
		{
			strcpy(temp, name[i]);
			strcpy(name[i], name[i+1]);
			strcpy(name[i+1], temp);
		}
	}
	for (i = 0; i < n; i++)
		printf("%s\n", name[i]);

	return 0;
}*/